import request from "@/utils/request";
export default {
// GET /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
//attrInfoList
  getAttrInfoList(category1Id,category2Id,category3Id){
    return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
  },

//DELETE /admin/product/deleteAttr/{attrId}
//deleteAttr
  delete(attrId){
    return request.delete(`/admin/product/deleteAttr/${attrId}`)
  },

//GET /admin/product/getAttrValueList/{attrId}
//getAttrValueList
  getAttrValueList(attrId){
    return request.get(`/admin/product/getAttrValueList/${attrId}`)
  },

//post /admin/product/saveAttrInfo
  addUpdate(attrInfo){
    return request.post('/admin/product/saveAttrInfo',attrInfo)
  }
}
